package com.zqwh.xtool.model;

import com.zqwh.yj.sdk.utils.httpRequest.subscribers.NetCallback;
import com.zqwh.xtool.domain.SyncData;
import com.zqwh.xtool.domain.SyncDataATO;
import com.zqwh.xtool.greendao.db.LendOrder;
import com.zqwh.xtool.greendao.db.LendOrderDetail;
import com.zqwh.xtool.greendao.db.Stock;
import com.zqwh.xtool.greendao.db.User;

import java.util.List;

public interface SyncModel {
    void getSyncData(String sn, NetCallback<SyncData> callback);
    void setSyncData(SyncDataATO syncDataATO, NetCallback<Object> callback);
    void getSyncUserList(Long devId, NetCallback<List<User>> callback);
    void getSyncStockList(Long devId, NetCallback<List<Stock>> callback);
    void getSyncLendOrderList(Long devId, NetCallback<List<LendOrder>> callback);
    void getSyncLendOrderDetailList(Long devId, NetCallback<List<LendOrderDetail>> callback);
    SyncDataATO getUpdatedData();
    boolean cancelUpdatedData();
    void cleanData();
    void cleanStockData();
    void cleanLendOrderData();
    void cleanLendOrderDetailData();
}
